<?php

include("ConexionSQL.php");
$var = new conexionSQL();
$cid = $var->conectarse();

$sql = "Select * from GVA23";

	
$cur = odbc_exec($cid,$sql)or die(exit("Error en odbc_exec || " . htmlspecialchars(odbc_errormsg())));
$Fields = odbc_num_rows($cur);
	
if($Fields > 0)
    {
                
        while( $row = odbc_fetch_row( $cur ))
          {
            echo utf8_encode(odbc_result($cur,'nombre_ven'));

		 echo utf8_encode(odbc_result($cur,'COD_VENDED'))."<br>";                          		}
}
    else
    {
      echo "No se encontraron coincidencias";
    }
?>